home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 00 / 2 / DISK0028.ZIP / GRAFGE.DOC < prev    next >
Text File  |  1983-03-02  |  2KB  |  42 lines

  1. typ grafge.doc
  2. 1 '      *****************
  3. 2 '      ** GRAFGEN.DOC **
  4. 3 '      *****************
  5. 4 '
  6. 5 '      by Wes Meier
  7. 6 '      70215,1017
  8. 7 '
  9. 8 '      January 28, 1983
  10. 9 '
  11. 10 'This documentation assumes the user has at least 96K of RAM.
  12. 11 '
  13. 12 'The data stored at locations 0000:007C - 0000:007F is an address used by
  14. 13 'BASIC as a pointer to a table used for the definition of the top 128 ASCII
  15. 14 'characters. Once the character set is in memory, this address must be made
  16. 15 'to point to the beginning of the table.
  17. 16 '
  18. 17 'The easiest place to store the table is immediately following the 64K
  19. 18 'segment used by BASIC. The address stored at 0000:0510 - 0000:0511 points
  20. 19 'to the beginning of this segment. The address is stored in the LSB/MSB
  21. 20 'format. If we add 10H to the MSB and 1H to the LSB the result is an
  22. 21 'address pointing to the first byte following BASIC's segment.
  23. 22 '********************************************************************
  24. 23 '  This code should be included in any program using a character set
  25. 24 '  created by GRAFGEN.BAS.
  26. 25 '  Assume the set has been BSAVED as "CHARSET.BIN".
  27. 26 '********************************************************************
  28. 27 DEF SEG=0   'Point to bottom of memory.
  29. 28 POKE &H7C,0 'Zero LSB of Character Table Offset Pointer.
  30. 29 POKE &H7D,0 'Zero LSB of Character Table Offset Pointer.
  31. 30 POKE &H7E,PEEK(&H510)+1     'BASIC's LSB Pointer + 1
  32. 31 POKE &H7F,PEEK(&H511)+&H10  'BASIC's MSB Pointer + 10H
  33. 32 'Now the character set pointers are directed to the first byte following
  34. 33 'the 64K segment used by BASIC.
  35. 34 DEF SEG=256*PEEK(&H7F)+PEEK(&H7E)    'Point to character table segment.
  36. 35 BLOAD "CHARSET.BIN",0        'Load in the table saved by GRAFGEN.BAS.
  37. 36 DEF SEG      'Reset segment pointer to default.
  38. 37 'End of required code.
  39. 38 END 'of GRAFGEN.DOC
  40.  
  41.  
  42. SIG/Access: